package com.lieve.bpm.command;


import org.activiti.engine.impl.persistence.StrongUuidGenerator;

/**
 * @author sunyoboy
 * 2021/5/24
 */
public class Client {
    public static void main(String[] args) {
        StrongUuidGenerator strongUuidGenerator;
        request();
    }

    private static void request() {
        // 创建接受者
        CommandReceiver receiver = new CommandReceiver();

        // 创建命令对象，设定他的接受者
        Command command = new ConcreteCommand(receiver);

        // 创建请求者，把命令对象设置进去
        CommandInvoker commandInvoker = new CommandInvoker(command);

        // 执行方法
        commandInvoker.action();
    }
}
